import { ACCESS_TOKEN_KEY } from "@/enums/cacheEnum.ts";

export function getAccessToken(): string {
  return getAuthCache(ACCESS_TOKEN_KEY)
}

export function getAuthCache<T>(key: string) {
  return localStorage.getItem(key) as T
}

export function setAuthCache(key: string, value: string) {
  return localStorage.setItem(key, value)
}
